package com.cuitrip.business.share.model;

//import com.umeng.socialize.bean.SHARE_MEDIA;

import android.os.Parcel;
import android.os.Parcelable;

import com.lab.adapter.IAdapterData;

/**
 * 用来存储分享的内容
 * Created by bqf on 7/16/14.
 */
public class Share implements Parcelable, IAdapterData {


    public String media;
    public String title;
    public String content;
    public String imgUrl;
    public String detailUrl;

    public static final String TITLE_ACTION = "title";
    public static final String MORE_ACTION = "more";
    public static final String COPY_ACTION = "copy";
    public static final String FB_ACTION="Facebook";
    public static final String MS_ACTION="Messenger";

    public Share() {
    }

    protected Share(Parcel in) {
        media = in.readString();
        title = in.readString();
        content = in.readString();
        imgUrl = in.readString();
        detailUrl = in.readString();
    }



    public static final Creator<Share> CREATOR = new Creator<Share>() {
        @Override
        public Share createFromParcel(Parcel in) {
            return new Share(in);
        }

        @Override
        public Share[] newArray(int size) {
            return new Share[size];
        }
    };


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(media);
        dest.writeString(title);
        dest.writeString(content);
        dest.writeString(imgUrl);
        dest.writeString(detailUrl);
    }


}
